# -*- coding: utf-8 -*-
"""
-------------------------------------------------
   File Name：     serializers
   Description :
   Author :       jusk?
   date：          2019/6/3
-------------------------------------------------
   Change Activity:
                   2019/6/3:
-------------------------------------------------
"""

from rest_framework import serializers
from .models import BookInfo

class BookSerializer(serializers.ModelSerializer):
    class Meta:
        model= BookInfo
        # fields = ('btitle','bpub_date')
        fields = '__all__'  # 包含所有属性
